package com.study.context;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Author v_yangliu
 * @Date 2022/1/23 17:16
 * @Version 1.0
 **/
@Slf4j
@Component
public class TestEventListener {

    @EventListener(ContextRefreshedEvent.class)
    public void onApplicationEvent(){
        log.info("========我在事件刷新注解EventListener下执行了=======");
    }
}
